<template>
	<div>
		<Citylist :getCity="getCity"></Citylist>
	</div>
</template>

<script>
	//引入组件
	import Citylist from '../../components/bazaar-city_list/index.vue'
	//注册组件
	export default {
		components: {
			Citylist,
		},
		data() {
			return {

			}
		},
		methods: {
			getCity({
				city,
				name
			}) {
				let citySub = city.substr(3, 3) || "天津市"
				uni.setStorageSync('city', citySub)
				console.log(city, 'city')
				console.log(name, 'name')
				// city 城市名称
				// name 定位名称
			}
		}
	}
</script>

<style scoped>

</style>
